package org.nmgyjt.springboot.beans.admin;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;

@ApiModel("部门创建对象")
@Data
public class CsSystemOrgCreateBean extends CsSystemSourceExtCreateBean {

    @ApiModelProperty(required = false, value = "管理员用户 ID", dataType = "string")
    private String userId;

    @ApiModelProperty(required = false, value = "机构 ID", dataType = "string")
    private String orgId;

    @ApiModelProperty(required = true, value = "管理员的单位/组织名称", dataType = "string")
    private String superiorOrgName;

    @NotEmpty(message = "管理员的单位/组织名称为必填项")
    @ApiModelProperty(required = true, value = "管理员的单位/组织ID", dataType = "string")
    private String adminOrgID;

    @NotEmpty(message = "单位/组织名称为必填项")
    @ApiModelProperty(required = true, value = "管理员的单位/组织名称", dataType = "string")
    private String orgName;

    @ApiModelProperty(required = false, value = "管理员的科室/机构下的内设机构", dataType = "string")
    private String office;

    @ApiModelProperty(required = true, value = "菜单名称", dataType = "string")
    private String menuName;

    @NotEmpty(message = "前端传参菜单名称不允许为空")
    @ApiModelProperty(required = true, value = "菜单名称", dataType = "string")
    private String menuID;

    @ApiModelProperty(required = false, value = "行政区划编码(当前管理员的行政区划编码)", dataType = "string")
    private String areaCode;

    @ApiModelProperty(required = false, value = "行政区划名称(指挥体系是必须传)", dataType = "string")
    private String areaName;

    @ApiModelProperty(required = false, value = "统一社会信用编码:村镇使用", dataType = "string")
    private String unified_social_credit_code;

    @ApiModelProperty(required = false, value = "资源队伍的管理员类型:2-总管理员;3-分管理员/成员单位管理员", dataType = "string")
    private String pageType;


    @ApiModelProperty(required = false, value = "创建管理员的手机号码", dataType = "string")
    private String createdBy;

    @ApiModelProperty(required = false, value = "机构的最大可设置人数", dataType = "integer")
    private Integer maxUserNumber;

    @ApiModelProperty(required = false, value = "排序号", dataType = "integer")
    private Integer udOrder;

    @ApiModelProperty(required = false, value = "预设成员单位名称", dataType = "string")
    private List<CsSystemOrgPreSetBean> preSetOrgInfos;

}
